/*
 * DailyMissionResource.h
 *
 *  Created on: 2014. 4. 8.
 *      Author: mega
 */

#ifndef DAILYMISSIONRESOURCE_H_
#define DAILYMISSIONRESOURCE_H_

#include <map>

namespace ProjectZ { namespace NResource {

class DailyMissionResource
{
public:
	struct Flyweight
	{
		int _TYPE;
		int _KIND;
		int _ITEM_CLASS;
		int _ITEM_SHEET;
		int _ITEM_TID;
		int _VALUE;
		int _COMPLETE_COUNT;
	};

public:
	DailyMissionResource();
	virtual ~DailyMissionResource();

	bool		LoadResource();
	Flyweight *	GetFly(int type);

public:
	typedef std::map<int, Flyweight *>	DAILYMISSIONTREE;

private:
	void	Clear();

private:
	DAILYMISSIONTREE	clsFlyTree;
};

} /* namespace NResource */ } /* namespace ProjectZ */

#endif /* DAILYMISSIONRESOURCE_H_ */
